<script setup>
import { defineComponent, defineProps, toRefs } from 'vue';

defineComponent({
    name: "TabbarWrapper",
});

const props = defineProps({
    activeTab: {
        type: String,
    }
});

const { activeTab } = toRefs(props);

</script>

<template>
    <VanTabbar :fixed="false" :model-value="activeTab">
        <VanTabbarItem name="home" icon="home-o" to="/home">主页</VanTabbarItem>
        <VanTabbarItem name="mine" icon="user-circle-o" to="/mine">我的</VanTabbarItem>
    </VanTabbar>
</template>